-- GENERATED SPELL FOR [Chieftain Oomooroo] --


function spell0_17448(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(18501,pUnit)
pUnit:RegisterEvent('Sorts_17448', 5349, 1)
end

function spell1_17448(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(13446,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17448', 592, 1)
end

function Sorts_17448(pUnit, Event)
local choix_sorts_17448 = math.random(0, 1)
if choix_sorts_17448 == 0 then
pUnit:RegisterEvent('spell0_17448', 1, 1)
end
if choix_sorts_17448 == 1 then
pUnit:RegisterEvent('spell1_17448', 1, 1)
end
end

function mob17448_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17448', math.random(1500, 3000), 1)
end

function mob17448_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17448_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17448_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17448, 1, 'mob17448_Action')
RegisterUnitEvent(17448, 2, 'mob17448_Leave')
RegisterUnitEvent(17448, 3, 'mob17448_Kill')
RegisterUnitEvent(17448, 4, 'mob17448_Die')
